﻿using System;
using UDS.Entity;

namespace UDS.Web.UI.Controls
{
    public class FlowJumpComparisonModeDropDownList : EnumDropDownList
    {
        protected override Type EnumType
        {
            get { return typeof(FlowJumpComparisonMode); }
        }

        protected override int DefaultEnumValue
        {
            get { return (int)FlowJumpComparisonMode.GreaterThan; }
        }

        protected override bool ShowDisplayName
        {
            get
            {
                // Display description in the list.
                return false;
            }
        }

        /// <summary>
        /// Get or set the comparison mode.
        /// </summary>
        public FlowJumpComparisonMode SelectedMode
        {
            get { return (FlowJumpComparisonMode)SelectedEnumValue; }
            set { SelectedEnumValue = (int)value; }
        }
    }
}
